package JHfstools;

import java.awt.EventQueue;

import javax.swing.JDialog;
import java.awt.Color;
import net.miginfocom.swing.MigLayout;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import java.awt.Dimension;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class hftfileinfo extends JDialog {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	JTextField hftfdname;
	private JTextField hftfdsize;
	private JTextField hftfdmoddate;
	private JTextField hftfdowner;
	JTextField hftfdgroup;
	private JTextField hftfdperm;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					hftfileinfo dialog = new hftfileinfo();
					dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
					dialog.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the dialog.
	 */
	public hftfileinfo() {
		setMinimumSize(new Dimension(700, 275));
		setPreferredSize(new Dimension(700, 275));
		setTitle("File Details");
		getContentPane().setBackground(new Color(245, 255, 250));
		getContentPane().setLayout(new MigLayout("", "[][][grow]", "[][][][][][][][]"));
		
		JLabel lblFileName = new JLabel("File Name:");
		getContentPane().add(lblFileName, "cell 0 0");
		
		hftfdname = new JTextField();
		getContentPane().add(hftfdname, "cell 2 0,growx");
		hftfdname.setColumns(10);
		
		JLabel lblFileSize = new JLabel("File Size");
		getContentPane().add(lblFileSize, "cell 0 1");
		
		hftfdsize = new JTextField();
		getContentPane().add(hftfdsize, "cell 2 1,growx");
		hftfdsize.setColumns(10);
		
		JLabel lblLastModifiedDate = new JLabel("Last Modified Date:");
		getContentPane().add(lblLastModifiedDate, "cell 0 2");
		
		hftfdmoddate = new JTextField();
		getContentPane().add(hftfdmoddate, "cell 2 2,growx");
		hftfdmoddate.setColumns(10);
		
		JLabel lblOwner = new JLabel("File Owner:");
		getContentPane().add(lblOwner, "cell 0 3");
		
		hftfdowner = new JTextField();
		getContentPane().add(hftfdowner, "cell 2 3,growx");
		hftfdowner.setColumns(10);
		
		JLabel lblOwningGroup = new JLabel("File Owning Group:");
		getContentPane().add(lblOwningGroup, "cell 0 4");
		
		hftfdgroup = new JTextField();
		getContentPane().add(hftfdgroup, "cell 2 4,growx");
		hftfdgroup.setColumns(10);
		
		JLabel lblFilePermissions = new JLabel("File Permissions:");
		getContentPane().add(lblFilePermissions, "cell 0 5");
		
		hftfdperm = new JTextField();
		getContentPane().add(hftfdperm, "cell 2 5,growx");
		hftfdperm.setColumns(10);
		
		JButton hftfdok = new JButton("");
		hftfdok.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				dispose();
			}
		});
		hftfdok.setMinimumSize(new Dimension(41, 41));
		hftfdok.setPreferredSize(new Dimension(41, 41));
		hftfdok.setIcon(new ImageIcon(hftfileinfo.class.getResource("images/dlgok.png")));
		getContentPane().add(hftfdok, "cell 0 7");
		setBounds(100, 100, 698, 274);

	}

	public JTextField getHftfdname() {
		return hftfdname;
	}
	public JTextField getHftfdsize() {
		return hftfdsize;
	}
	public JTextField getHftfdowner() {
		return hftfdowner;
	}
	public JTextField getHftfdmoddate() {
		return hftfdmoddate;
	}
	public JTextField getHftfdgroup() {
		return hftfdgroup;
	}
	public JTextField getHftfdperm() {
		return hftfdperm;
	}
}
